package www.com.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.Date;

@Repository
@Data
@TableName("film")
public class Film{
    @TableId(type = IdType.UUID)
    private String id;
    private  String name;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private  String content;
    private  String poster;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "releaseTime")
    private Date time;
    private  Integer type;
    private  Integer country;


    public Film() {
    }



    public Film(String id, String name, @org.jetbrains.annotations.Nullable String content,  Date time, Integer type, Integer country, String poster) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.time = time;
        this.type = type;
        this.country = country;
        this.poster = poster;
    }

}
